<?php

namespace apiend\modules\shop\models;

use Yii;
use common\helpers\Url;

class ShopGoodsSales extends \common\models\shop\ShopGoods
{

    /**
     * {@inheritdoc}
     */
    public function fields() {
        $fields = [
            'stock_num' => 'allowSales',
            'stock_mode' => function() {
                return 0;
            },
            'sales' => 'sales',
        ];
        return $fields;
    }

}
